package com.mcxx.modules.temporary.family.service.read;

import com.mcxx.modules.temporary.family.entity.TmpFamilyMainHistoryEntity;
import com.mcxx.modules.temporary.family.dao.read.TmpFamilyMainHistoryReadDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional(readOnly = true)
public class TmpFamilyMainHistoryReadService {

    @Autowired
    private TmpFamilyMainHistoryReadDao tmpFamilyMainHistoryReadDao;


    public List<TmpFamilyMainHistoryEntity> listAll() {
    	return tmpFamilyMainHistoryReadDao.listAll();
    }



    public TmpFamilyMainHistoryEntity getById(String id) {
    	return tmpFamilyMainHistoryReadDao.getById(id);
    }


    public TmpFamilyMainHistoryEntity getByOrderId(String orderId) {
        return tmpFamilyMainHistoryReadDao.getByOrderId(orderId);
    }
}
